package backend.service.base;

import backend.model.base.DBModel;

import java.util.Collection;

public interface DBModelService<DBM extends DBModel> {

    Class<DBM> getEntityClass();

    DBM getDbModelById(int id);

    void saveOrUpdateDBModel(DBM dbModel);

    void bulkSaveOrUpdateDBModels(Collection<DBM> dbModelCollection);

	void saveDBModel(DBM employee);

    void bulkSaveDBModels(Collection<DBM> dbModelCollection);

	void updateDBModel(DBM dbModel);

    void deleteDBModel(DBM dbModel);

    void bulkDeleteDBModels(Collection<DBM> dbModelCollection);
}
